#include "widget.h"
#include "ui_widget.h"
#include <QPushButton>
#include "mypushbuttoon.h"


Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    // QPushButton *button2 = new QPushButton("第二个按钮",this);
    // button2 -> move(200,200);

    this -> setFixedSize(500,500);

    MyPushButtoon *button =new MyPushButtoon();
    button -> setParent(this);
    button -> setText("自定义按钮");
    //button -> move(100,100);
    button -> setFixedSize(200,50);
}

Widget::~Widget()
{
    delete ui;
}
